package com.yanqu.road.entity.log.channel.channeltongbing;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

// 不需要了吧
@FieldTypeAnnotation(tableName = "t_l_ck_channel_tongbing_log_appoint", desc = "跨域统兵-城主任命日志", autoSave = true, uploadCk = true, isChannelLog = true)
public class LogChannelTonBingAppoint extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "城主玩家ID")
    private long winnerUserId;
    @FieldTypeAnnotation(desc = "被任命玩家ID")
    private long appointUserId;
    @FieldTypeAnnotation(desc = "职位")
    private int titleId;
    @FieldTypeAnnotation(desc = "阵营id")
    private int campId;

    public LogChannelTonBingAppoint(int activityId, long winnerUserId, long appointUserId, int titleId, int campId) {
        this.activityId = activityId;
        this.winnerUserId = winnerUserId;
        this.appointUserId = appointUserId;
        this.titleId = titleId;
        this.campId = campId;
    }

    @Override
    public long getUserId() {
        return winnerUserId;
    }
}
